package com.huika.dealontop.control.pay.utils;

/**
 * Description:支付帮助基类
 * Created by zhouweiyong on 2015/11/20.
 */
public abstract class BasePay {
    public static final String PAYORDERNO = "payOrderNO";//支付id
    public static final String ORDERNO = "orderNo";//订单id
    public static final String TOTALMONEY = "totalMoney";
    public static final String PHONE = "phone";
    public static final String USERID = "userId";
    public static final String NEEDCLOSECURRENTPAGE = "needCloseCurrentPage";
    public static final int PAY_MODE_OMISE = 0;
    public static final int PAY_MODE_PAYPAL = 1;
    public static final int PAY_MODE_LINE = 2;
    public static final int PAY_MODE_PAYSBUY = 3;
    //public static final String PAYMENTORDERID = "paymentOrderId";
    public static final int PAY_SUCCESS = 2000;
    public static final int PAY_FAILURE = 2001;
    public int payMethod = 2;//1,Omise  2,paypal  3,line pay  默认使用omise支付
    public String payOrderNo;//支付单号
    private String orderNo;//订单号
    private String phone;//手机号
    private double totalMoney;//支付的总金额
    private String userId;

    public abstract void pay();

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public double getTotalMoney() {
        return totalMoney;
    }

    public void setTotalMoney(double totalMoney) {
        this.totalMoney = totalMoney;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getPayOrderNo() {
        return payOrderNo;
    }

    public void setPayOrderNo(String payOrderNo) {
        this.payOrderNo = payOrderNo;
    }

    public void setPayMethod(int payMethod) {
        this.payMethod = payMethod;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }
}
